package com.smarthealthcare.wardrounds.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.smarthealthcare.wardrounds.mapper.WardroundsMapper;
import com.smarthealthcare.wardrounds.domain.Wardrounds;
import com.smarthealthcare.wardrounds.service.IWardroundsService;

/**
 * 查房信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-25
 */
@Service
public class WardroundsServiceImpl implements IWardroundsService 
{
    @Autowired
    private WardroundsMapper wardroundsMapper;

    /**
     * 查询查房信息
     * 
     * @param id 查房信息主键
     * @return 查房信息
     */
    @Override
    public Wardrounds selectWardroundsById(Long id)
    {
        return wardroundsMapper.selectWardroundsById(id);
    }

    /**
     * 查询查房信息列表
     * 
     * @param wardrounds 查房信息
     * @return 查房信息
     */
    @Override
    public List<Wardrounds> selectWardroundsList(Wardrounds wardrounds)
    {
        return wardroundsMapper.selectWardroundsList(wardrounds);
    }

    /**
     * 新增查房信息
     * 
     * @param wardrounds 查房信息
     * @return 结果
     */
    @Override
    public int insertWardrounds(Wardrounds wardrounds)
    {
        return wardroundsMapper.insertWardrounds(wardrounds);
    }

    /**
     * 修改查房信息
     * 
     * @param wardrounds 查房信息
     * @return 结果
     */
    @Override
    public int updateWardrounds(Wardrounds wardrounds)
    {
        return wardroundsMapper.updateWardrounds(wardrounds);
    }

    /**
     * 批量删除查房信息
     * 
     * @param ids 需要删除的查房信息主键
     * @return 结果
     */
    @Override
    public int deleteWardroundsByIds(Long[] ids)
    {
        return wardroundsMapper.deleteWardroundsByIds(ids);
    }

    /**
     * 删除查房信息信息
     * 
     * @param id 查房信息主键
     * @return 结果
     */
    @Override
    public int deleteWardroundsById(Long id)
    {
        return wardroundsMapper.deleteWardroundsById(id);
    }
}
